// let arr = [1,2,3]
// let [x,y,z] = arr;//x,y,z将与arr中每个位置对应来取值
// console.log(x,y,z)

// const [a] = arr;//只匹配1个参数
// console.log(a)


// const person = {
//     name:"jack",
//     age:21,
//     language:['java','js','css']
// };
// function hello(person) {
//     console.log("hello "  + person.name)
// }
// hello(person)


const person = {
    name:"jack",
    age:21,
    language:['java','js','css']
};
const hello2 = ({name}) => console.log("hello-" + name)
hello2(person)
